package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.GetProjectListReqDto;
import com.emm.yixun.common.app.GetProjectListResDto;
import com.emm.yixun.estate.service.app.ProjectInfoServiceAppFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.vo.GetProjectListReqVo;

/**
 * 查询项目列表接口
 * @author Administrator
 *
 */
@Service("getProjectListHander")
public class GetProjectListHander extends com.emm.yixun.openapi.hander.base.CommonAbstractHander{
	
	@Autowired
	private ProjectInfoServiceAppFacade projectInfoServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetProjectListReqVo req = (GetProjectListReqVo)reqDto;
		GetProjectListReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetProjectListResDto> res = new BaseResponseDTO<GetProjectListResDto>();
		res.setResData(projectInfoServiceAppFacade.getProjectList(reqDto1));
		return res;
	}
	
}
